package com.xxd.spring.boot.demo.zhuhongbing.util;

import com.xxd.spring.boot.demo.zhuhongbing.entity.User;

public class UserManageUtil {
    public static final ThreadLocal<User> USER_TH=new ThreadLocal();

    public static void set(User user){
        USER_TH.set(user);
    }
    public static User get(){
        return USER_TH.get();
    }
    public static void remove(){
        USER_TH.remove();
    }
}
